/* --- PLIK: cmentarz/common/header.css --- */

/* Style podstawowe dla nagłówka */
.site-header {
    width: 100%;
    height: 200px; 
    background-color: rgb(46, 88, 123)  !important;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    overflow: hidden;
    font-family: 'Ubuntu', sans-serif;
}

/* Grafika kościoła */
.church-graphic {
    position: absolute;
    bottom: 0px; 
    left: 0; 
    height: 160px; 
    width: auto;
    z-index: 1; 
    opacity: 1;
}

/* Tytuł parafii */
.parish-title-overlay {
    position: absolute;
    bottom: 10px;
    left: 10px; 
    font-size: 46px; 
    font-weight: 700; 
    color: #ffffff;
    line-height: 1.1;
    z-index: 10; 
    text-shadow: 2px 2px 0px #204060, 3px 3px 8px rgba(0,0,0,0.7);
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
}
.parish-title-overlay:hover,
.parish-title-overlay:focus,
.parish-title-overlay:active {
    color: #ffffff;
    text-decoration: none;
}

/* Górny pasek i ikony */
.header-top-bar {
    position: absolute;
    top: 20px;
    right: 20px; 
    display: flex;
    align-items: center;
    gap: 30px;
    z-index: 20;
}

.header-socials {
    position: absolute;
    top: 20px;
    left: 20px;  
    display: flex;
    gap: 10px;
    z-index: 50;
}

.social-icon {
    display: flex; align-items: center; justify-content: center;
    width: 45px; height: 45px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 4px; transition: background 0.3s;
}
.social-icon:hover { background-color: rgba(255, 255, 255, 0.3); }
.social-icon svg { width: 25px; height: 25px; fill: #fff; }

/* Menu Desktop */
.header-nav { display: flex; gap: 20px; }
.header-nav a {
    text-decoration: none; color: rgba(255, 255, 255, 0.95);
    font-size: 20px; font-weight: 300; transition: color 0.3s;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
.header-nav a:hover { color: #fbd61c; }
.header-nav a.active { color: #81d4fa; font-weight: 300; }

/* Mobilki */
.hamburger-btn { display: none; }
.close-menu-btn { display: none; }

@media (max-width: 1100px) { .parish-title-overlay { font-size: 36px; } }

@media (max-width: 900px) {
    .site-header { height: auto; min-height: 200px; padding-bottom: 20px; }
    .header-top-bar { position: relative; top: 0; right: 0; flex-direction: column-reverse; padding: 20px; align-items: flex-end; }
    .header-nav { flex-direction: column; text-align: right; gap: 10px; }
    .parish-title-overlay { font-size: 28px; white-space: normal; bottom: 15px; left: 10px; text-shadow: 1px 1px 4px rgba(0,0,0,0.8); }
    .church-graphic { height: 160px; opacity: 1; left: 0px; }
}

@media (max-width: 1050px) {
    .hamburger-btn {
        display: block;
        background: rgba(255, 255, 255, 0.2);
        color: #fff;
        border: 1px solid #fff;
        font-size: 18px;
        padding: 8px 16px;
        border-radius: 4px;
        cursor: pointer;
        font-family: 'Ubuntu', sans-serif;
        text-transform: uppercase;
        margin-bottom: 10px;
    }

    .header-nav {
        display: none; 
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(30, 60, 90, 0.98);
        z-index: 9999;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: opacity 0.3s ease;
    }

    .header-nav.otwarte { display: flex; }

    .header-nav a {
        font-size: 24px;
        color: #fff;
        text-decoration: none;
        border-bottom: none;
    }
    
    .header-nav a:hover { color: #fbd61c; }

    .header-nav a.close-menu-btn {
        display: block;
        position: absolute;
        top: 20px;
        right: 30px;
        font-size: 80px !important; 
        color: #fff !important;
        text-decoration: none;
        line-height: 1;
        cursor: pointer;
        border-bottom: none;
        padding: 0;
    }

    .header-nav a.close-menu-btn:hover { color: #ffe014 !important; }
    
    .header-top-bar {
        position: absolute;
        top: 20px;
        right: 20px;
        flex-direction: column;
        align-items: flex-end;
        padding: 0;
    }
}